package com.wbt.generic;

import java.util.ArrayList;
import java.util.List;

/**
 * @author daojin
 * @date 2022/4/26 10:46 上午
 */
public class GenericTest {
    public static void main(String[] args) {
        List<String> l1 = new ArrayList<String>();
        List<Integer> l2 = new ArrayList<Integer>();

        System.out.println(l1.getClass());
        System.out.println(l1.getClass());


        List<?>[] array = new ArrayList<?>[10];
        ArrayList<Integer> integers = new ArrayList<>();
        integers.add(111);
        integers.add(222);
        array[0] = integers;

        System.out.println(array);

    }
}
